#include "QtUI/Impl/QtProjectViewImpl.qth"
#include "QtUI/Impl/QtProjectViewImpl.moh"
#include "QtUI/QtProjectViewBase.hpp"

namespace QtUI { namespace Impl
{

QtProjectViewImpl::QtProjectViewImpl( QtProjectViewBase& prjView)
	: rPrjView_( prjView)
{
	connect( this, SIGNAL( projectChangedSignal( Model::Project*)), this, SLOT( projectChangedSlot( Model::Project*)), Qt::QueuedConnection);
	connect( this, SIGNAL( projectDescriptionChangedSignal( Model::Project*)), this, SLOT( projectDescriptionChangedSlot( Model::Project*)), Qt::QueuedConnection);
}

// ---------------------------------------------------------------------------------------------------------------------

void QtProjectViewImpl::projectChangedSlot( Model::Project* pNewProject)
{
	rPrjView_.handleProjectChanged( pNewProject);
}

// ---------------------------------------------------------------------------------------------------------------------

void QtProjectViewImpl::projectDescriptionChangedSlot( const Model::Project& changedPrj)
{
	rPrjView_.handleProjectDescriptionChanged( changedPrj);
}

 
} } // namespace Impl // namespace QtUI
